/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: DuKe TeAm
 * License Type: Purchased
 */
package orm;

import java.util.List;
import org.hibernate.criterion.DetachedCriteria;
import org.orm.PersistentSession;
import org.orm.criteria.*;

public class Tbv_capturaDetachedCriteria extends AbstractORMDetachedCriteria {
	public final IntegerExpression ca_id_captura;
	public final StringExpression ca_ticket;
	public final BooleanExpression ca_procesado;
	public final BooleanExpression ca_valido;
	
	public Tbv_capturaDetachedCriteria() {
		super(orm.Tbv_captura.class, orm.Tbv_capturaCriteria.class);
		ca_id_captura = new IntegerExpression("ca_id_captura", this.getDetachedCriteria());
		ca_ticket = new StringExpression("ca_ticket", this.getDetachedCriteria());
		ca_procesado = new BooleanExpression("ca_procesado", this.getDetachedCriteria());
		ca_valido = new BooleanExpression("ca_valido", this.getDetachedCriteria());
	}
	
	public Tbv_capturaDetachedCriteria(DetachedCriteria aDetachedCriteria) {
		super(aDetachedCriteria, orm.Tbv_capturaCriteria.class);
		ca_id_captura = new IntegerExpression("ca_id_captura", this.getDetachedCriteria());
		ca_ticket = new StringExpression("ca_ticket", this.getDetachedCriteria());
		ca_procesado = new BooleanExpression("ca_procesado", this.getDetachedCriteria());
		ca_valido = new BooleanExpression("ca_valido", this.getDetachedCriteria());
	}
	
	public Tbv_tipo_capturaDetachedCriteria createTbv_tipo_capturatc_id_tipo_capturaCriteria() {
		return new Tbv_tipo_capturaDetachedCriteria(createCriteria("tbv_tipo_capturatc_id_tipo_captura"));
	}
	
	public Tbv_bitacora_recaudacionDetachedCriteria createTbv_bitacora_recaudacionbr_id_bitacora_recaudacionCriteria() {
		return new Tbv_bitacora_recaudacionDetachedCriteria(createCriteria("tbv_bitacora_recaudacionbr_id_bitacora_recaudacion"));
	}
	
	public Tbv_captura uniqueTbv_captura(PersistentSession session) {
		return (Tbv_captura) super.createExecutableCriteria(session).uniqueResult();
	}
	
	public Tbv_captura[] listTbv_captura(PersistentSession session) {
		List list = super.createExecutableCriteria(session).list();
		return (Tbv_captura[]) list.toArray(new Tbv_captura[list.size()]);
	}
}

